import type {
  GetCountRequest,
  GetCountResponse,
  GetMonthCountRequest,
  GetMonthCountResponse,
} from '@/types/count'
import { http } from '@/utils/http'

export const GetCountAPI = (data: GetCountRequest) => {
  return http<GetCountResponse>({
    method: 'POST',
    url: '/Count/GetCount',
    data,
  })
}
export const GetMonthCountType = (data: GetMonthCountRequest) => {
  return http<GetMonthCountResponse[]>({
    method: 'POST',
    url: '/Count/GetMonthCount',
    data,
  })
}
export const ExportToExcelAPI = (data: GetMonthCountRequest) => {
  return http<{}>({
    method: 'POST',
    url: '/Count/ExportToExcel',
    data,
  })
}
